package com.wolfpire.notice.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wolfpire.notice.dao.NoticeDao;
import com.wolfpire.notice.service.NoticeService;
import com.wolfpire.system.common.Page;
import com.wolfpire.system.common.base.dao.IBaseHibernateDao;
import com.wolfpire.system.common.base.dao.impl.BaseHibernateDao;
import com.wolfpire.system.common.base.service.impl.BaseHibernateService;
import com.wolfpire.system.model.Notice;
import com.wolfpire.system.model.Profession;
@Service("noticeService")
public class NoticeServiceImpl extends BaseHibernateService<Notice, Long> 
	implements NoticeService {
	
	@Resource private NoticeDao noticeDao;

	public List<Notice> list(Notice entity) {
		// TODO Auto-generated method stub
		return null;
	}

	public Notice getByTitle(String title) {
		// TODO Auto-generated method stub
		return null;
	}

	public Page<Notice> setPageDataList(Page<Notice> page, Notice filterNotice) {
		// TODO Auto-generated method stub
		return this.noticeDao.findNotices(page, filterNotice);
	}

	public List<Notice> list(int num) {
		// TODO Auto-generated method stub
		return this.noticeDao.list(num);
	}

	public Notice findFrontNotice(long id, String type) {
		// TODO Auto-generated method stub
		return this.noticeDao.findFrontNotice(id, type);
	}

	public Notice findNextNoitce(long id, String type) {
		// TODO Auto-generated method stub
		return this.noticeDao.findNextNoitce(id, type);
	}

	public Notice currentNotice(long id, String type) {
		// TODO Auto-generated method stub
		return this.noticeDao.currentNotice(id, type);
	}

	@Override
	protected IBaseHibernateDao<Notice, Long> getEntityDao() {
		// TODO Auto-generated method stub
		return this.noticeDao;
	}

}
